

#import "XTXXitongCell.h"
#import "SDAutoLayout.h"

@implementation XTXXitongCell

-(UILabel *)shijianLabel{
    if (!_shijianLabel) {
        _shijianLabel = [UILabel new];
        _shijianLabel.font = [UIFont systemFontOfSize:iOS_frame_width(30)];
        _shijianLabel.textAlignment = NSTextAlignmentLeft;
        _shijianLabel.numberOfLines = 0;
        _shijianLabel.textColor = [UIColor whiteColor];
    }
    return _shijianLabel;
}

-(UIView *)bgView{
    if (!_bgView) {
        _bgView = [UIView new];
        _bgView.backgroundColor = XZRGB(0x9576e4);
        
    }
    return _bgView;
}
-(UILabel *)shijianlabel1{
    if (!_shijianlabel1) {
        _shijianlabel1 = [UILabel new];
        _shijianlabel1.textColor = XZColor(105,105,105);
        _shijianlabel1.textAlignment = NSTextAlignmentCenter;
        _shijianlabel1.font = [UIFont systemFontOfSize:iOS_frame_width(22)];
    }
    return _shijianlabel1;
}


-(UIImageView *)touxiangImageView{
    if (!_touxiangImageView) {
        _touxiangImageView = [[UIImageView alloc]init];
    }
    return _touxiangImageView;
}
-(UIImageView *)touxiangImageView02{
    if (!_touxiangImageView02) {
        _touxiangImageView02 = [[UIImageView alloc]init];
        _touxiangImageView02.image = [UIImage imageNamed:@"系统通知图标"];
        _touxiangImageView02.layer.cornerRadius = 20;
        _touxiangImageView02.layer.masksToBounds = YES;
    }
    return _touxiangImageView02;
}

-(void)layoutSuoyouView
{
    _shijianlabel1.sd_layout.topSpaceToView(self.contentView, iOS_frame_height(40)).rightSpaceToView(self.contentView, 0).leftSpaceToView(self.contentView, 0).heightIs(iOS_frame_height(22));
    _touxiangImageView.sd_layout.widthIs(iOS_frame_width(14)).heightIs(iOS_frame_height(24)).centerYEqualToView(_touxiangImageView02).leftSpaceToView(_touxiangImageView02, iOS_frame_width(16));
}
-(void)laodSuoyouView{
    [self.contentView addSubview:self.shijianlabel1];
    [self.contentView addSubview:self.touxiangImageView02];
    [self.contentView addSubview:self.touxiangImageView];
    [self.contentView addSubview:self.bgView];
    [self.bgView addSubview:self.shijianLabel];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self laodSuoyouView];
        [self layoutSuoyouView];
    }
    return self;
}

@end
